{include file=member.header.html}
<script>
$(function() {
    $('#wlform').validate({
        errorPlacement: function(error, element) {
            element.after(error);
        },
        rules: {
            password: {
                required: true,
                byteRange: [6, 20, 'utf-8'],
                checkPassword: true
            },
			 report_reason: {
                required: true
            }
        },
        messages: {
            password: {
                required: '密码不能为空',
                byteRange: '密码必须在6-20个字符之间',
                checkPassword: '密码不能为纯数字或包含非法字符'
            },
			report_reason: {
                required: '请选择退款原因'
            }
        }
    });
});
</script>
<div class="content f-cb"> {include file=path.html}
  {include file=member.menu.html}
  <!-- 内容右边栏 -->
  <div class="con-r-global">
    <!--退款-->
    <!--{if $returns.type eq 1}-->
    <div class="sales-return-progress05"></div>
    <table width="100%" class="return-table-success">
      <tr>
        <td width="440">{$returns.add_time|date:Y-m-d H:i:s}</td>
        <td width="300">&nbsp;</td>
        <td width="296">&nbsp;</td>
      </tr>
    </table>
    <!--{/if}-->
    <!--退货退款-->
    <!--{if $returns.type eq 2}-->
    <div class="return-progress-success"></div>
    <table width="100%" class="return-table-success">
      <tr>
        <td width="290">2014-07-25 18:05:15</td>
        <td width="300">&nbsp;</td>
        <td width="300">&nbsp;</td>
        <td width="146">&nbsp;</td>
      </tr>
    </table>
    <!--{/if}-->
    <dl class="status">
      <dd><a href="javascript:history.go(-1);" class="btngray">返回上一步</a></dd>
      <dd>
        <form action="" method="post" id="wlform">
          <p style="padding:5px 0;">确认后： <i>{$returns.returns_amount}</i> 元，将立即退到买家账户。</p>
          <table class="table2">
            <tr>
              <td width="110"><i>*</i> 请输入支付密码：</td>
              <td><input type="password" name="password" placeholder="请输入密码" class="txt" /></td>
            </tr>
            <tr>
              <td width="110"><i>*</i> 请选择退款原因：</td>
              <td><select name="report_reason">
                 <option value="" selected="selected">请选择退款原因</option>
                  <!--{foreach from=$report_reason key=key item=reason}-->
                  <optgroup label="{$key}">
                  <!--{foreach from=$reason item=v}-->
                  <option value="{$v}">{$v}</option>
                  <!--{/foreach}-->
                  </optgroup>
                  <!--{/foreach}-->
                </select></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td><input type="hidden" name="agree_type" value="1" />
                <input type="submit" value="确认退款" class="subbtnhs" /></td>
            </tr>
          </table>
        </form>
      </dd>
    </dl>
    <div class="return-div-success">
      <!--退货退款日志-->
      <!--{if $returns_log}-->
      <dl class="info">
        <dt>
          <h4>跟踪信息</h4>
        </dt>
        <dd>
          <table width="100%">
            <tr>
              <td width="200" class="gray">处理时间</td>
              <td width="580" class="gray">处理信息</td>
              <td width="94" class="gray">操作人</td>
            </tr>
            <!--{foreach from=$returns_log item=log}-->
            <tr>
              <td>{$log.log_time|date:Y-m-d H:i:s}</td>
              <td><p>{$log.remark|escape}</p></td>
              <td>{$log.operator|escape}</td>
            </tr>
            <!--{/foreach}-->
          </table>
        </dd>
      </dl>
      <!--{/if}-->
      <!--退货退款申请信息-->
      <dl class="info">
        <dt>
          <h4>
            <!--{if $returns.type eq 1}-->
            退款详情
            <!--{/if}-->
            <!--{if $returns.type eq 2}-->
            退货详情
            <!--{/if}-->
          </h4>
        </dt>
        <dd>
          <table class="mb25" width="100%">
            <tr>
              <td width="105" class="pdl50"><a href="{jsurl app=goods&id=$returns.goods_id}" title="{$returns.goods_name|escape}" target="_blank"><img src="{$returns.goods_image}" alt="{$returns.goods_name|escape}" width="100" height="100" /></a></td>
              <td><p class="title"><a href="{jsurl app=goods&id=$returns.goods_id}" title="{$returns.goods_name|escape}" target="_blank" class="linkbtn">{$returns.goods_name|escape}</a></p>
                <p>购物数量：<i id="quantity">{$returns.goods_quantity}</i></p>
                <!--{if $returns.specification}-->
                <p>{$returns.specification|escape}</p>
                <!--{/if}--></td>
            </tr>
          </table>
          <table class="return-table-content mb30" width="100%">
            <tr>
              <td width="100" class="pdl50"><!--{if $returns.type eq 1}-->
                退款商品数：
                <!--{/if}-->
                <!--{if $returns.type eq 2}-->
                退货商品数：
                <!--{/if}--></td>
              <td>{$returns.quantity}件</td>
            </tr>
            <tr>
              <td class="pdl50"><!--{if $returns.type eq 1}-->
                退款原因：
                <!--{/if}-->
                <!--{if $returns.type eq 2}-->
                退货原因：
                <!--{/if}--></td>
              <td> {$returns.returns_reason|escape} </td>
            </tr>
            <!--{if $returns.returns_explain}-->
            <tr>
              <td class="pdl50">补充说明：</td>
              <td><p style="width:600px;">{$returns.returns_explain|escape}</p></td>
            </tr>
            <!--{/if}-->
            <!--{if $returns.returns_img}-->
            <tr>
              <td class="pdl50">相关图片：</td>
              <td><ul class="imgs f-cb" >
                  <!--{foreach from=$returns.returns_img item=img}-->
                  <li><img src="{$img}" alt="" width="60" height="60" /></li>
                  <!--{/foreach}-->
                </ul></td>
            </tr>
            <!--{/if}-->
            <tr>
              <td class="pdl50">需退商品金额：</td>
              <td><span class="coe6">{$returns.goods_amount}</span> 元 </td>
            </tr>
            <!--{if $returns.shipping_fee}-->
            <tr>
              <td class="pdl50">需退运费：</td>
              <td><span class="coe6">{$returns.shipping_fee}</span> 元 </td>
            </tr>
            <!--{/if}-->
          </table>
        </dd>
      </dl>
    </div>
  </div>
</div>
{include file=footer.html} 